chrome.webRequest.onCompleted.addListener(
    (details) => {
      // 只记录 MP4 请求
      if (details.url.endsWith('.mp4')) {
        chrome.storage.local.set({ currentRequest: details });
      }
    },
    { urls: ["<all_urls>"] }
  );